﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MebApp.Launcher
{
    public class JsonResp
    {
        public int code { get; set; }
        public string msg { get; set; }
        public string data { get; set; }
        public T As<T>()
        {
            if (data == null)
                return default(T);
            return JsonConvert.DeserializeObject<T>(this.data);
        }
    }
}
